(function(angular) {
	'use strict';
	angular.module("fs.waf").config([ 'modalServiceProvider', function(modalServiceProvider) {

		modalServiceProvider.setDialogsModule('cls.settlementInit.split', {
			title : 'title.dialogs.lookup',
			pageId : 'CLS_POPUP_SETTLEMENTINIT_SPLIT',
			templateUrl : 'cls/view/${theme}/lookup/settlementInitSplit/lookupSettlementInitSplit.html',
			controller : 'cls.lookup.settlementInitSplitController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/lookup/settlementInitSplit/lookupSettlementInitSplitController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/lookup/settlementInitSplit',
			i18nConfig : 'do/cls/resource/lookup/settlementInitSplit',
			authorizationConfig : 'do/cls/authorization/lookup/settlementInitSplit',
			validatorConfig : 'do/cls/validator/lookup/settlementInitSplit'
		});
		modalServiceProvider.setDialogsModule('cls.settlementInit.changeAmt', {
			title : 'title.dialogs.lookup',
			pageId : 'CLS_POPUP_SETTLEMENTINIT_CHANGEAMT',
			templateUrl : 'cls/view/${theme}/lookup/settlementInitChangeAmt/lookupSettlementInitChangeAmt.html',
			controller : 'cls.lookup.settlementInitChangeAmtController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/lookup/settlementInitChangeAmt/lookupSettlementInitChangeAmtController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/lookup/settlementInitChangeAmt',
			i18nConfig : 'do/cls/resource/lookup/settlementInitChangeAmt',
			authorizationConfig : 'do/cls/authorization/lookup/settlementInitChangeAmt',
			validatorConfig : 'do/cls/validator/lookup/settlementInitChangeAmt'
		});
		modalServiceProvider.setDialogsModule('cls.settlement.summary.loanMoreData', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_SETTLEMENTSUMMARY_LOANMOREDATA',
			templateUrl : 'cls/view/${theme}/popup/settlement/summary/popupLoanMoreData.html',
			controller : 'cls.popup.settlement.summary.loanMoreDataController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/settlement/summary/popupLoanMoreDataController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/loanMoreData',
			i18nConfig : 'do/cls/resource/popup/loanMoreData',
			authorizationConfig : 'do/cls/authorization/popup/loanMoreData',
			validatorConfig : 'do/cls/validator/popup/loanMoreData'
		});
		
		modalServiceProvider.setDialogsModule('cls.extRequest.viewResponse', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_EXTREQUEST_VIEWRESPONSE',
			templateUrl : 'cls/view/${theme}/popup/extrequest/viewResponse.html',
			controller : 'cls.popup.extrequest.viewResponseController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/extrequest/viewResponseController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/viewResponse',
			i18nConfig : 'do/cls/resource/popup/viewResponse',
			authorizationConfig : 'do/cls/authorization/popup/viewResponse',
			validatorConfig : 'do/cls/validator/popup/viewResponse'
		});
		
		modalServiceProvider.setDialogsModule('cls.limitResponse.viewResponse', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_LIMITRESPONSE_VIEWRESPONSE',
			templateUrl : 'cls/view/${theme}/popup/limitResponse/viewLimitResponse.html',
			controller : 'cls.popup.limitResponse.viewLimitResponseController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/limitResponse/viewLimitResponseController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/viewlimitResponse',
			i18nConfig : 'do/cls/resource/popup/viewlimitResponse',
			authorizationConfig : 'do/cls/authorization/popup/viewlimitResponse',
			validatorConfig : 'do/cls/validator/popup/viewlimitResponse'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.moreDataEdit', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_LOAN_MOREDATAEDIT',
			templateUrl : 'cls/view/${theme}/popup/loan/loanMoraDataEdit.html',
			controller : 'cls.popup.loan.moreDataEditController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/loan/loanMoreDataEditController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/loanEdit',
			i18nConfig : 'do/cls/resource/popup/loanEdit',
			authorizationConfig : 'do/cls/authorization/popup/loanEdit',
			validatorConfig : 'do/cls/validator/popup/loanEdit'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.moreDataView', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_LOAN_MOREDATAVIEW',
			templateUrl : 'cls/view/${theme}/popup/loan/loanMoraDataView.html',
			controller : 'cls.popup.loan.moreDataViewController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/loan/loanMoreDataViewController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/loanView',
			i18nConfig : 'do/cls/resource/popup/loanView',
			authorizationConfig : 'do/cls/authorization/popup/loanView'
		});
		
		modalServiceProvider.setDialogsModule('cls.paySwift.swiftFile', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_PAYSWIFTFILE',
			templateUrl : 'cls/view/${theme}/popup/paySwift/swiftFile.html',
			controller : 'cls.popup.paySwift.swiftFileController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/paySwift/swiftFileController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/swiftFile',
			i18nConfig : 'do/cls/resource/popup/swiftFile',
			authorizationConfig : 'do/cls/authorization/popup/swiftFile'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.glEntryList', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_LOANGLENTRYLIST',
			templateUrl : 'cls/view/${theme}/popup/glEntryList/glEntryList.html',
			controller : 'cls.popup.glEntryList.listController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/glEntryList/glEntryListController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/glEntryList',
			i18nConfig : 'do/cls/resource/popup/glEntryList',
			authorizationConfig : 'do/cls/authorization/popup/glEntryList'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.repaymentList', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_REPAYMENTLIST',
			templateUrl : 'cls/view/${theme}/popup/repayment/repaymentList.html',
			controller : 'cls.popup.repaymentList.listController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/repayment/repaymentListController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/repaymentList',
			i18nConfig : 'do/cls/resource/popup/repaymentList',
			authorizationConfig : 'do/cls/authorization/popup/repaymentList'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.amendmentList', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_AMENDMENTLIST',
			templateUrl : 'cls/view/${theme}/popup/amendment/amendmentList.html',
			controller : 'cls.popup.amendmentList.listController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/amendment/amendmentListController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/amendmentList',
			i18nConfig : 'do/cls/resource/popup/amendmentList',
			authorizationConfig : 'do/cls/authorization/popup/amendmentList'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.repaymentView', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_REPAYMENTVIEW',
			templateUrl : 'cls/view/${theme}/popup/repayment/repaymentView.html',
			controller : 'cls.popup.repaymentView.viewController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/repayment/repaymentViewController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js', 
					'cls/js/${theme}/service/glEntry/glEntryService.js',
					'cls/js/${theme}/service/txn/txnService.js',
					'cls/js/${theme}/service/rollover/rolloverService.js',
					'cls/js/${theme}/service/repayment/repaymentService.js',
					'cls/js/${theme}/service/settlement/summary/settlementSummaryService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentFactory.js', 
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayCheckService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDdaService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDefaultService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayInvoiceService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePaySwiftService.js',
                    'cls/js/${theme}/service/settlement/settlementInit/clsConstants.js',
                    'cda/js/${theme}/service/custAcct/addressInfoService.js',
                    'cls/js/${theme}/service/settlement/summary/paySwiftService.js'],
			layoutConfig : 'do/cls/layout/popup/repaymentView',
			i18nConfig : 'do/cls/resource/popup/repaymentView',
			authorizationConfig : 'do/cls/authorization/popup/repaymentView'
		});

		modalServiceProvider.setDialogsModule('cls.loan.view', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_LOAN_VIEW',
			templateUrl : 'cls/view/${theme}/popup/loan/loanView.html',
			controller : 'cls.popup.loanView.viewController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/loan/loanViewController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js', 
					'cls/js/${theme}/service/txn/txnService.js',
                    'cls/js/${theme}/service/loan/loanService.js',
                    'cls/js/${theme}/service/loan/loanInterestService.js',
                    'cls/js/${theme}/service/loan/loanPastdueService.js',
                    'cls/js/${theme}/service/settlement/summary/settlementSummaryService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentFactory.js', 
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayCheckService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDdaService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDefaultService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayInvoiceService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePaySwiftService.js',
                    'cls/js/${theme}/service/settlement/settlementInit/clsConstants.js',
                    'cda/js/${theme}/service/custAcct/addressInfoService.js',
                    'cls/js/${theme}/service/glEntry/glEntryService.js',
                    'cls/js/${theme}/service/settlement/summary/paySwiftService.js'],
			layoutConfig : 'do/cls/layout/popup/loanView',
			i18nConfig : 'do/cls/resource/popup/loanView',
			authorizationConfig : 'do/cls/authorization/popup/loanView'
		});
		
		modalServiceProvider.setDialogsModule('cls.custpay.view', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_CUSTPAYVIEW',
			templateUrl : 'cls/view/${theme}/popup/custPay/custPayView.html',
			controller : 'cls.popup.custPayView.viewController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/custPay/custPayViewController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js', 
					'cls/js/${theme}/service/txn/txnService.js',
                    'cls/js/${theme}/service/custPay/custPayService.js',
                    'cls/js/${theme}/service/settlement/summary/settlementSummaryService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentFactory.js', 
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayCheckService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDdaService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDefaultService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayInvoiceService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePaySwiftService.js',
                    'cls/js/${theme}/service/settlement/settlementInit/clsConstants.js',
                    'cda/js/${theme}/service/custAcct/addressInfoService.js',
                    'cls/js/${theme}/service/glEntry/glEntryService.js',
                    'cls/js/${theme}/service/settlement/summary/paySwiftService.js'],
			layoutConfig : 'do/cls/layout/popup/custPayView',
			i18nConfig : 'do/cls/resource/popup/custPayView',
			authorizationConfig : 'do/cls/authorization/popup/custPayView'
		});
		
		modalServiceProvider.setDialogsModule('cls.dcharge.view', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_DCHARGEVIEW',
			templateUrl : 'cls/view/${theme}/popup/directCharge/directChargeView.html',
			controller : 'cls.popup.directChargeView.viewController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/directCharge/directChargeViewController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js', 
					'cls/js/${theme}/service/txn/txnService.js',
                    'cls/js/${theme}/service/directCharge/directChargeService.js',
                    'cls/js/${theme}/service/settlement/summary/settlementSummaryService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentFactory.js', 
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayCheckService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDdaService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDefaultService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayInvoiceService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePaySwiftService.js',
                    'cls/js/${theme}/service/settlement/settlementInit/clsConstants.js',
                    'cda/js/${theme}/service/custAcct/addressInfoService.js',
                    'cls/js/${theme}/service/settlement/summary/paySwiftService.js',
                    'cls/js/${theme}/service/glEntry/glEntryService.js'],
			layoutConfig : 'do/cls/layout/popup/directChargeView',
			i18nConfig : 'do/cls/resource/popup/directChargeView',
			authorizationConfig : 'do/cls/authorization/popup/directChargeView'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.amendmentView', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_REPAYMENTLIST',
			templateUrl : 'cls/view/${theme}/popup/amendment/amendmentView.html',
			controller : 'cls.popup.amendmentView.viewController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/amendment/amendmentViewController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js', 
					'cls/js/${theme}/service/glEntry/glEntryService.js',
					'cls/js/${theme}/service/settlement/summary/settlementSummaryService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentService.js',
                    'cls/js/${theme}/service/settlement/payment/settlementPaymentFactory.js', 
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayCheckService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDdaService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayDefaultService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePayInvoiceService.js',
                    'cls/js/${theme}/service/settlement/payment/payCodes/settlePaySwiftService.js',
                    'cls/js/${theme}/service/settlement/settlementInit/clsConstants.js',
                    'cda/js/${theme}/service/custAcct/addressInfoService.js',
                    'cls/js/${theme}/service/settlement/summary/paySwiftService.js'],
			layoutConfig : 'do/cls/layout/popup/amendmentView',
			i18nConfig : 'do/cls/resource/popup/amendmentView',
			authorizationConfig : 'do/cls/authorization/popup/amendmentView'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.intAccrualList', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_INTACCRUALLIST',
			templateUrl : 'cls/view/${theme}/popup/intAccrualList/intAccrualList.html',
			controller : 'cls.popup.intAccrualList.listController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/intAccrualList/intAccrualListController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/intAccrualList',
			i18nConfig : 'do/cls/resource/popup/intAccrualList',
			authorizationConfig : 'do/cls/authorization/popup/intAccrualList'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.txnFeeList', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_TXNFEELIST',
			templateUrl : 'cls/view/${theme}/popup/txnFee/txnFeeList.html',
			controller : 'cls.popup.txnFeeList.listController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/txnFee/txnFeeListController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/txnFeeList',
			i18nConfig : 'do/cls/resource/popup/txnFeeList',
			authorizationConfig : 'do/cls/authorization/popup/txnFeeList'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.txnFeeView', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_TXNFEEVIEW',
			templateUrl : 'cls/view/${theme}/popup/txnFee/txnFeeView.html',
			controller : 'cls.popup.txnFeeView.viewController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/txnFee/txnFeeViewController.js',
			                   'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/txnFeeView',
			i18nConfig : 'do/cls/resource/popup/txnFeeView',
			authorizationConfig : 'do/cls/authorization/popup/txnFeeView'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.txnJournalList', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_TXNJOURNALLIST',
			templateUrl : 'cls/view/${theme}/popup/txnJournal/txnJournalList.html',
			controller : 'cls.popup.txnJournal.listController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/txnJournal/txnJournalListController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/txnJournalList',
			i18nConfig : 'do/cls/resource/popup/txnJournalList',
			authorizationConfig : 'do/cls/authorization/popup/txnJournalList'
		});
		
		modalServiceProvider.setDialogsModule('cls.loan.feeAmortizeList', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_FEEAMORTIZE',
			templateUrl : 'cls/view/${theme}/popup/feeAmortize/feeAmortizeList.html',
			controller : 'cls.popup.feeAmortize.listController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/feeAmortize/feeAmortizeListController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/feeAmortizeList',
			i18nConfig : 'do/cls/resource/popup/feeAmortizeList',
			authorizationConfig : 'do/cls/authorization/popup/feeAmortizeList'
		});

		modalServiceProvider.setDialogsModule('cls.glEntry.viewGL', {
			title : 'title.dialogs.popup',
			pageId : 'CLS_POPUP_GLENTRY_VEWGL',
			templateUrl : 'cls/view/${theme}/popup/glentry/viewGL.html',
			controller : 'cls.popup.glentry.viewGLController',
			controllerAs : 'vm',
			dependentFiles : [ 'cls/view/${theme}/popup/glentry/viewGLController.js', 'waf/js/module/uigrid/ui-grid.css',
					'waf/js/module/uigrid/ui-grid.js' ],
			layoutConfig : 'do/cls/layout/popup/viewGL',
			i18nConfig : 'do/cls/resource/popup/viewGL',
			authorizationConfig : 'do/cls/authorization/popup/viewGL'
		});
		
	} ]);
})(angular);
